package com.uestc.ssm.dao;

import com.uestc.ssm.PO.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;

public class UserMapperImpl extends SqlSessionDaoSupport implements UserMapper{
    @Override
    public User getUserById(int id) {
        return getSqlSession().getMapper(UserMapper.class).getUserById(id);
    }

    @Override
    public void addUser(User user) {
        getSqlSession().getMapper(UserMapper.class).addUser(user);
    }

    @Override
    public void updateUser(User user) {
        getSqlSession().getMapper(UserMapper.class).updateUser(user);
    }

    @Override
    public void deleteUserById(int id) {
        getSqlSession().getMapper(UserMapper.class).deleteUserById(id);
    }
}
